@echo off
echo 启动 Vue + SpringBoot 项目...

echo.
echo 1. 启动后端服务...
cd backend
start "SpringBoot Backend" cmd /k "mvn spring-boot:run"
cd ..

echo.
echo 2. 启动前端服务...
cd frontend
start "Vue Frontend" cmd /k "npm install && npm run dev"
cd ..

echo.
echo 项目启动完成！
echo 前端地址: http://localhost:5173
echo 后端API: http://localhost:8080
echo.
echo 按任意键退出...
pause > nul 